import crawl.LinkParser
import http.Http

object Main extends App{
    val code = Http("https://movie.douban.com/").get()
    val resp = code.get.toStringEncoding()
    val links = LinkParser.parse(resp)
    links.foreach(link => println(link))
//    println(s"code is\n $resp")
}
